from sanic import response
from . import app_login_pwd
from .verify_login import UserLogin_
import asyncio

@app_login_pwd.route('/user_login',methods=["POST"])
async def login_verify(request):

    info=request.form
    
    phone=info.get('phone')

    verify_code=info.get("verify_code")

    result=await UserLogin_().user_login(phone,verify_code)

    return response.json(result)
    
